import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/get_control_measures_all_details_entity.g.dart';


@JsonSerializable()
class GetControlMeasuresAllDetailsEntity {

	GetControlMeasuresAllDetailsEntity();

	factory GetControlMeasuresAllDetailsEntity.fromJson(Map<String, dynamic> json) => $GetControlMeasuresAllDetailsEntityFromJson(json);
	String? riskObjectName;
	String? objectHazardDep;
	String? objectHazardLiablePerson;
	String? riskUnitName;
	String? unitHazardLiablePerson;
	String? unitHazardDep;
	String? riskEventName;
	int? initialRiskConsequences;
	int? initialRiskDegree;
	int? initialRiskPossibility;
	String? initialRiskLevel;
	String? riskMeasureDesc;
	String? dataSrc;
	int? consequenceReduction;
	int? probabilityReduction;
	String? classify1;
	dynamic classify2;
	String? classify3;
	String? troubleshootContent;
	List<GetControlMeasuresAllDetailsTbBaseMeasuresTaskList>? tbBaseMeasuresTaskList;
	String? riskMeasureLevel;
	String? createDate;
	String? createBy;
	String? updateDate;
	String? updateBy;

	Map<String, dynamic> toJson() => $GetControlMeasuresAllDetailsEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class GetControlMeasuresAllDetailsTbBaseMeasuresTaskList {

	GetControlMeasuresAllDetailsTbBaseMeasuresTaskList();

	factory GetControlMeasuresAllDetailsTbBaseMeasuresTaskList.fromJson(Map<String, dynamic> json) => $GetControlMeasuresAllDetailsTbBaseMeasuresTaskListFromJson(json);
	String? id;
	String? riskObjectId;
	String? riskObjectName;
	String? riskUnitId;
	String? riskUnitName;
	String? riskEventId;
	String? riskEventName;
	String? riskMeasureId;
	String? riskMeasureName;
	String? companyCode;
	String? allocationId;
	String? allocationName;
	String? allocationType;
	String? season;
	String? troubleshootContent;
	String? workType;
	String? controlMeasures;
	String? workKind;
	String? taskNum;
	String? taskStatus;
	String? checkCycle;
	String? checkCycleUnit;
	String? workStartTime;
	String? workEndTime;
	String? workDayType;
	String? instrumentId;
	String? deleted;
	String? createDate;
	String? createBy;
	String? createById;
	String? updateById;
	String? updateDate;
	String? updateBy;
	String? hazardCode;
	String? checkMeans;
	int? status;
	int? inspectionStatus;
	dynamic effectiveTime;
	int? controllable;
	String? departmentId;
	String? userId;
	String? warehouseId;
	String? startRefreshTime;
	String? endRefreshTime;
	int? isUpload;
	int? isApprove;
	dynamic taskTimeNodeTables;

	Map<String, dynamic> toJson() => $GetControlMeasuresAllDetailsTbBaseMeasuresTaskListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}
